#include <REG52.H>
#include "XPT2046.h"
#include "Delay.h"
#include "LCD1602.h"
void main()
{
    unsigned int adj, ntc, rg;
    LCD1602_Init();
    LCD1602_ShowString(1, 1, "ADJ NTC RG");
    while (1) {
        adj = XPT2046_ReadAD(XPT2046_8_XP);
        LCD1602_ShowNum(2, 1, adj, 3);
        ntc = XPT2046_ReadAD(XPT2046_8_YP);
        LCD1602_ShowNum(2, 5, ntc, 3);
        rg = XPT2046_ReadAD(XPT2046_8_VBAT);
        LCD1602_ShowNum(2, 9, rg, 3);
        Delay(500);
    }
}